package com.wholesale.beans;

import org.json.JSONException;
import org.json.JSONObject;

public class GoodsInOrder {

	private String extensionCode ;
	private String goodsAttr ;
	private int goodsId ;
	private int goodsIntegral ;
	private String goodsMemo ;
	private String goodsName ;
	private int goodsNumber ;
	private double goodsPrice ;
	private int goodsPrize ;
	private String goodsSn ;
	private boolean isGift ;
	private double marketPrice ;
	private int orderId ;
	private int parentId ;
	private int sendNumber ;
	private boolean isReal ;
	public String getExtensionCode() {
		return extensionCode; 
	}
	public void setExtensionCode(String extensionCode) {
		this.extensionCode = extensionCode;
	}
	public String getGoodsAttr() {
		return goodsAttr;
	}
	public void setGoodsAttr(String goodsAttr) {
		this.goodsAttr = goodsAttr;
	}
	public int getGoodsId() {
		return goodsId;
	}
	public void setGoodsId(int goodsId) {
		this.goodsId = goodsId;
	}
	public int getGoodsIntegral() {
		return goodsIntegral;
	}
	public void setGoodsIntegral(int goodsIntegral) {
		this.goodsIntegral = goodsIntegral;
	}
	public String getGoodsMemo() {
		return goodsMemo;
	}
	public void setGoodsMemo(String goodsMemo) {
		this.goodsMemo = goodsMemo;
	}
	public String getGoodsName() {
		return goodsName;
	}
	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}
	public int getGoodsNumber() {
		return goodsNumber;
	}
	public void setGoodsNumber(int goodsNumber) {
		this.goodsNumber = goodsNumber;
	}
	public double getGoodsPrice() {
		return goodsPrice;
	}
	public void setGoodsPrice(double goodsPrice) {
		this.goodsPrice = goodsPrice;
	}
	public int getGoodsPrize() {
		return goodsPrize;
	}
	public void setGoodsPrize(int goodsPrize) {
		this.goodsPrize = goodsPrize;
	}
	public String getGoodsSn() {
		return goodsSn;
	}
	public void setGoodsSn(String goodsSn) {
		this.goodsSn = goodsSn;
	}
	public boolean isGift() {
		return isGift;
	}
	public void setGift(boolean isGift) {
		this.isGift = isGift;
	}
	public double getMarketPrice() {
		return marketPrice;
	}
	public void setMarketPrice(double marketPrice) {
		this.marketPrice = marketPrice;
	}
	public int getOrderId() {
		return orderId;
	}
	public void setOrderId(int orderId) {
		this.orderId = orderId;
	}
	public int getParentId() {
		return parentId;
	}
	public void setParentId(int parentId) {
		this.parentId = parentId;
	}
	public int getSendNumber() {
		return sendNumber;
	}
	public void setSendNumber(int sendNumber) {
		this.sendNumber = sendNumber;
	}
	public boolean isReal() {
		return isReal;
	}
	public void setReal(boolean isReal) {
		this.isReal = isReal;
	}
	
	public JSONObject getJSONObject(){
		JSONObject jsonObject = new JSONObject();
		try {
			jsonObject.put("goodsId", goodsId);
		} catch (JSONException e) {
		}
		try {
			jsonObject.put("goodsSn", goodsSn);
		} catch (JSONException e) {
		}
		try {
			jsonObject.put("goodsName", goodsName);
		} catch (JSONException e) {
		}
		try {
			jsonObject.put("goodsNumber", goodsNumber);
		} catch (JSONException e) {
		}
		try {
			jsonObject.put("goodsPrice", goodsPrice);
		} catch (JSONException e) {
		}
		try {
			jsonObject.put("goodsAttr", goodsAttr);
		} catch (JSONException e) {
		}
		return jsonObject ;
	}
}
